package com.partner.match.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.partner.match.model.entity.UserTeam;

import javax.servlet.http.HttpServletRequest;

/**
* @author jzz
* @description 针对表【user_team(用户队伍关系表)】的数据库操作Service
* @createDate 2025-01-25 10:32:01
*/
public interface UserTeamService extends IService<UserTeam> {
    /**
     * 创建用户-队伍关系
     * @param teamId
     * @param userId
     * @return
     */
    Long createRelation(Long teamId, Long userId);

    /**
     * 退出队伍
     * @param teamId
     */
    void exitTeam(Long teamId);
}
